<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var arr = ["nick","shanzan","sala","solo"];
        // for (const iterator of arr) {
        //     console.log(iterator);
        // }
        var arr =[
            {name:"zhangsan",age:124},
            {name:"wangba",age:1000},{
              name:"xigua",age:0  
            }
        ]
        for (const iterator of arr) {
            console.log(iterator.name+""+iterator.age);
            console.log("输出对象",iterator);//未来开发，要打印对象看看的时候，用逗号分隔字符串
        }
    </script>
</body>
</html>